<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/modules/checkA.php");
include_once("../../../../config.php");
include_once("../controller/detail-add.php");
?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="../css/<? echo $theme_folder ?>/user.css" rel="stylesheet" type="text/css"/>
    <?php include ROOT_PATH_.'/controller/common/modules/head.php'; ?>
    <?php include 'modules/head.php'; ?>

</head>


<body>

<div id="topbar">
    <?php include ROOT_PATH_.'/controller/common/modules/topbar.php'; ?>
</div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/modules/sidebar.php'; ?>
        </div>






<div id="content" class="layui-form">
	<div class="box member-add-box layui-form">
<h1>添加文章</h1>

<form id="add-employee-form" method="post" action="detail-add-function.php?sys_part=activity" enctype="multipart/form-data" class="layui-form">



    <fieldset class="layui-elem-field layui-field-title">
        <legend> 基本资料</legend>
    </fieldset>





    <div class="layui-form-item">
        <label class="layui-form-label">文章标题</label>
        <div class="layui-input-block">
            <input type="text" name="ai_name" lay-verify="required" placeholder="文章标题" autocomplete="off" class="layui-input" >
        </div>
    </div>




    <li class="layui-form-item icon">

        <label class="layui-form-label">ICON</label>

        <div class="layui-input-block">

            <?php
            if($detail['icon'] != 'alpha.gif' && $detail['icon'] != ''){
                ?>
                <img src="<?
                if ($detail_storage) {
                    echo $detail_storage;
                } else {
                    echo $site_domin;
                }
                ?>/uploadfiles/<? echo $theme_folder ?>/<? echo  $detail['icon'] ?>" width="100"/>
            <?php }?>
            <a href="detail-delete-img.php?nid=<?php echo $trans_nid ?>&img=icon&sys_part=<? echo $system_part ?>">
                删除</a>
            <span class="title-data">(请上传像素<? echo $first_icon_data[0] ?>X<? echo $first_icon_data[1] ?>的图片,格式为jpeg)</span>
        </div>
    </li>

    <li class="layui-form-item icon">
        <label class="layui-form-label">上传文件</label>
        <div class="layui-input-block">   <input type="file" name="icon" onchange="fileChange(this);"/></div><em class="explain">(上传列表图标)</em></li>










    <div class="layui-form-item">
        <label class="layui-form-label">发布</label>
        <div class="layui-input-block">
            <input type="radio" name="ai_status" value="0" title="否" >
            <input type="radio" name="ai_status" value="1" title="是" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">置顶</label>
        <div class="layui-input-block">
            <input type="radio" name="ai_top" value="0" title="否" >
            <input type="radio" name="ai_top" value="1" title="是" >
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">置顶排序</label>
        <div class="layui-input-block">
            <input type="text" name="ai_top_order"  class="layui-input" >

        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">跳转</label>
        <div class="layui-input-block">
            <select name="ai_informant"  lay-search="" >
                <option value="">无</option>
                <option value="pages/news/detail" >文章：pages/news/detail</option>
                <option value="pages/activity/detail" >活动：pages/activity/detail</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">跳转id</label>
        <div class="layui-input-block">
            <input type="text" name="ai_path_id" lay-verify="required" placeholder="跳转id" autocomplete="off" class="layui-input" value="">
        </div>
    </div>





    <div class="layui-form-item">
           <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
           </div>
        </div>
</form>
</div>



<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>

<?php include ROOT_PATH_ . "/controller/common/modules/footer.php"; ?> </body>
</html>

